package com.crs.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Review {
    private Long id;
    private Long borrowId;
    private Long resourceId;
    private Long userId;
    private Integer rating;
    private String comment;
    private String reply;
    private LocalDateTime replyTime;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    private Integer status;
    //点赞数
    private Integer likeCount;

    //父评价id
    private Long parentReviewId;

    private Borrow_record borrowRecord;
    private User user;
    private Resource resource;
}
